Smush\Core\Modules\Dir D

Total Complexity 195
Dependencies 10
Dependents 3
Total lines 1,260
Lines of code 672
Logical lines of code 382
Comment lines 416
Methods 36
Properties 4

Methods 36

Method Rating Maintainability Complexity Lines of code
get_image_list()
C
35 25 84
get_directory_tree()
B
42 17 47
skip_dir()
B
48 18 28
optimise_image()
A
39 11 72
total_stats()
A
41 12 55
combine_stats()
A
51 9 23
validate_path()
A
54 8 22
initialize()
S
52 7 23
is_image()
S
56 7 17
should_continue()
S
63 8 9
directory_smush_finish()
S
58 6 14
last_scan_stats()
S
52 5 24
image_list()
S
55 5 19
init()
S
56 5 17
get_unsmushed_images()
S
57 5 16
get_image()
S
63 6 10
get_root_path()
S
57 4 16
directory_list()
S
60 4 12
table_exist()
S
64 4 9
check_table()
S
65 4 9
show_table_error()
S
62 2 16
build_query()
S
63 3 10
check_scan()
S
68 2 12
create_table()
S
56 1 23
remove_directory_tab()
S
71 2 6
directory_smush_check_step()
S
65 2 9
is_media_library_file()
S
65 2 9
is_image_from_extension()
S
66 2 8
get_scanned_images()
S
64 2 9
get_image_errors()
S
64 1 11
directory_smush_cancel()
S
78 1 4
directory_smush_start()
S
78 1 4
send_error()
S
70 1 7
store_images()
S
73 1 5
get_image_errors_count()
S
68 1 8
get_admin_path()
S
71 1 5